/*
 * @(#)InterceptorStackInfo.java $version 2010. 8. 11
 *
 * Copyright 2007-2010 NHN Corp. All rights Reserved. 
 * NHN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package com.nhncorp.usf.core.config;

import java.util.ArrayList;
import java.util.List;

/**
 * 환경 파일로부터의 Interceptor-stack 정보를 넣을 모델.
 *
 * @author Web Platform Development Team
 */
public class InterceptorStackInfo {
    /**
     * InterceptorStack 식별자( 이름).
     */
    private String name;

    /**
     * Interceptor 또는 다른 InterceptorStack 참조 {@link List}.
     */
    List<String> interceptorRefs = new ArrayList<String>();

    /**
     * 생성자.
     */
    public InterceptorStackInfo(String name) {
        this.name = name;
    }

    /**
     * InterceptorStack 식별자 반환.
     *
     * @return the interceptor stack name
     */
    public String getName() {
        return this.name;
    }

    /**
     * Interceptor 또는 다른 InterceptorStack 참조 추가.
     *
     * @param interceptorRef the interceptor ref name
     */
    public void addInterceptorRef(String interceptorRef) {
        interceptorRefs.add(interceptorRef);
    }

    /**
     * Interceptor 참조 {@link List} 반환.
     *
     * @return the interceptor ref name list
     */
    public List<String> getInterceptorRefs() {
        return this.interceptorRefs;
    }
}
